(function () {
    function getUrlParam(name) {
        let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        let r = window.location.search.trim().substr(1).match(reg);
        if (r != null) return unescape(r[2]);
        else return "";
    }
    let nowS = getUrlParam('jq');
    if (nowS) {
        let maxTime = 20;
        document.body.addEventListener('click', function () {
            maxTime = 20;
        });
        setInterval(function () {
            maxTime--;
            if (maxTime <= 0) {
                window.location.href = `http://z.hengdianworld.com/jqdp?jq=${nowS}#/`;
            }
        }, 1000)
    } else {
        return;
    }

})();